<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <title>airchat</title>
    <!-- <script src=></script> -->
    <script src="http://at.alicdn.com/t/font_541713_6k7oo8m50xu323xr.js"></script>
  </head>

  <body>
    <div id="app"></div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js"></script>
    <script>
      const socket = io("http://localhost:3000");
      const userInfo = JSON.parse(localStorage.getItem("userInfo"));
      if (userInfo) {
        socket.emit("update", userInfo.user_id);
      }
    </script>
  </body>
</html>
